﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Approval.aspx.cs" Inherits="OtherCaptitalReim.Approval" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>其他资金支付及发票报销申请</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../../js/common.js"></script>
    <script type="text/javascript" language="javascript">
        function check(ID) {
            if (ID == 'rdoMoney') {
                document.getElementById("DivMoney").style.display = "";
                document.getElementById("DivContract").style.display = "none";
                document.getElementById("mytable").style.display = "";
                $("#fld_TTABLETYPE").val("合同付款审批");

            } else if (ID == 'rdoRemiber') {
                document.getElementById("DivMoney").style.display = "none";
                document.getElementById("mytable").style.display = "none";
                document.getElementById("DivContract").style.display = "";
                $("#fld_TTABLETYPE").val("合同发票报销审批");
            }
        }
        $(document).ready(function () {
            if ($("#fld_TTABLETYPE").text() == "合同发票报销审批") {
                document.getElementById("mytable").style.display = "none";
                document.getElementById("DivContract").style.display = "block";
                $("#txtfpje").text($("#fld_TFPJE").text());
                $("#lbfpjedx").text($("#fld_TJEDX").text());
            }
            else {
                // $("#fld_TTABLETYPE").val("合同付款审批");
                document.getElementById("mytable").style.display = "block";
                document.getElementById("DivContract").style.display = "none";
                $("#lbje").text($("#fld_TFPJE").text());
                //              $("#lbjedx").text($("#fld_TJEDX").text());
            }
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="其他资金支付及发票报销申请" tablename="PROC_OTHERCAPTITA"
                processprefix="OTCR" tablenamedetail="PROC_OTHERCAPTITA_DETAIL" runat="server"
                readonly="true"></ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <thead>
                    <tr>
                        <td class="banner" colspan="9">
                            <asp:Label runat="server" ID="fld_TTABLETYPE"></asp:Label>
                        </td>
                    </tr>
                </thead>
                <tbody id="mytable">
                    <tr>
                        <td class="banner">
                            表单类别
                        </td>
                        <td class="td-content" colspan="8">
                            合同付款类
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款金额：
                        </td>
                        <td class="td-content" colspan="4">
                            <asp:Label ID="lbje" runat="server" Text=""></asp:Label>
                            <div style="display: none">
                                <asp:Label runat="server" ID="fld_TFPJE"></asp:Label>
                            </div>
                        </td>
                        <td class="td-label">
                            付款金额大写：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="lbjedx" runat="server" Text=""></asp:Label>
                            <asp:Label runat="server" display="none" ID="fld_TJEDX"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            开户行：
                        </td>
                        <td class="td-content" colspan="4">
                            <asp:Label ID="fld_KHH" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            银行卡号：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_YHKH" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            支付种类:
                        </td>
                        <td class="td-content" colspan="8">
                            <asp:Label ID="fld_PAYTYPE" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款信息：
                        </td>
                        <td class="td-content" colspan="8">
                            <asp:Label runat="server" ID="fld_TFKINFO" TextMode="MultiLine" Width="98%" Height="60px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            是否在预算内：
                        </td>
                        <td class="td-content" colspan="8">
                            <asp:Label runat="server" ID="fld_TISYS"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            供应商名称
                        </th>
                        <th>
                            内容
                        </th>
                        <th>
                            合同编号
                        </th>
                        <th>
                            合同金额
                        </th>
                        <th>
                            供货数量
                        </th>
                        <th>
                            合同数量
                        </th>
                        <th>
                            已付金额
                        </th>
                        <th>
                            本次所需要金额
                        </th>
                        <th>
                            预计付款时间
                        </th>
                    </tr>
                    <asp:Repeater runat="server" ID="fld_detail_PROC_OTHERCAPTITA_DETAIL">
                        <ItemTemplate>
                            <tr>
                                <td class="td-content">
                                    <asp:TextBox ID="fld_FORMID" Text='<%#Eval("FORMID") %>' runat="server" Style="display: none"></asp:TextBox>
                                    <asp:Label ID="fld_TSUPPLIERNAME" runat="server" Width="90%" Text='<%#Eval("TSUPPLIERNAME") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TCONTENTS" runat="server" Width="90%" Text='<%#Eval("TCONTENTS") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TCONTRACTNO" runat="server" Width="90%" Text='<%#Eval("TCONTRACTNO") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TCONTRACTPRICE" runat="server" Width="90%" Text='<%#Eval("TCONTRACTPRICE") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TSUPPLYDATA" runat="server" Width="90%" Text='<%#Eval("TSUPPLYDATA") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TCONTRACTDATA" runat="server" Width="90%" Text='<%#Eval("TCONTRACTDATA") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TPAYMENTPRICE" runat="server" Width="90%" Text='<%#Eval("TPAYMENTPRICE") %>'></asp:Label>
                                </td>
                                <td class="td-content" width="14%">
                                    <asp:Label ID="fld_TTHISNEEDPRICE" runat="server" Width="90%" Text='<%#Eval("TTHISNEEDPRICE") %>'></asp:Label>
                                </td>
                                <td class="td-content">
                                    <asp:Label ID="fld_TADVANCEDATE" runat="server" Width="90%" Text='<%#Eval("TADVANCEDATE") %>'></asp:Label>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
                <tbody id="DivContract">
                    <tr>
                        <td class="banner">
                            表单类别
                        </td>
                        <td class="td-content" colspan="3">
                            发票报销类
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            所属公司：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_TSSGS" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票金额：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="txtfpje" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            发票金额大写：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lbfpjedx" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票号：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_TINVOCIENO" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票信息：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_TINVOICEINFO" runat="server"></asp:Label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" runat="server" readonly="true"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
